<template>
	<view>
		<textarea type="text"  @input="input" auto-height maxlength="500" style="width: 100%;padding: 0 30rpx;" placeholder="请输入文字内容"/>
		<view class="fgh">
			<view class="tijiao" :class="{bgc_DB1B22:true}" @click="submit">
				确定
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:'',
			};
		},
		methods:{
			input(e){
				this.value=e.detail.value
			},
			submit(){
				uni.redirectTo({url:"./Post?value="+this.value})
			}
		}
	}
</script>

<style lang="scss">
	.fgh{
		width: 100%;
		position: fixed;
		bottom: 0;
		height: 100rpx;
		background: #FFFFFF;
		border-top: 1px solid #DDDDDD;
		.tijiao{
			width: 690rpx;
			height: 70rpx;
			background: #FEBFC1;
			border-radius: 36rpx;
			margin: 14rpx auto;
			font-size: 28rpx;
			font-family: PingFangSC-Semibold, PingFang SC;
			font-weight: 600;
			color: #FFFFFF;
			line-height: 70rpx;
			text-align: center;
	
		}
		.bgc_DB1B22{
			background-color: #DB1B22;
		}
		
	}
</style>
